package com.study.edoc.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.study.edoc.pojo.Category;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class DocumentVO implements Serializable {
    private Integer id;
    private Integer cid;
    private Category category;
    private String title;
    private String summary;
    private String uploader;
    @JsonFormat(pattern = "yyyy年MM月dd日 HH:mm:ss")
    private LocalDateTime createdTime;
    private String attachment;

    @JsonFormat(pattern = "yyyy年MM月dd日 HH:mm:ss")
    private LocalDateTime downloadTime;
}
